<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>调用一个用户方法，同时传递参数数组（已废弃）</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.autoload.html">__autoload</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.call-user-method.html">call_user_method</a></div>
 <div class="up"><a href="ref.classobj.html">类/对象 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.call-user-method-array" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">call_user_method_array</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5)</p><p class="refpurpose"><span class="refname">call_user_method_array</span> &mdash; <span class="dc-title">
   调用一个用户方法，同时传递参数数组（已废弃）
  </span></p>

 </div>
 <div class="refsect1 unknown-seealsp" id="refsect1-function.call-user-method-array-unknown-seealsp">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>call_user_method_array</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$method_name</code></span>
   , <span class="methodparam"><span class="type">object</span> <code class="parameter reference">&$obj</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$paramarr</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">
    <span class="function"><strong>call_user_method_array()</strong></span>
    函数自 PHP 4.1.0 起已废弃，使用  <span class="function"><a href="function.call-user-func-array.html" class="function">call_user_func_array()</a></span> 
    函数和  <em>array(&amp;$obj, &quot;method_name&quot;)</em>
    语法代替。
   </p>
  </div>
  <p class="para">
   从用户定义的 <em><code class="parameter">obj</code></em> 
   对象中调用 <em><code class="parameter">method_name</code></em>
   所指的方法，同时使用 <em><code class="parameter">paramarr</code></em>
   中的参数。
  </p>
  <p class="para">
   参见 <span class="function"><a href="function.call-user-func-array.html" class="function">call_user_func_array()</a></span> 和
   <span class="function"><a href="function.call-user-func.html" class="function">call_user_func()</a></span>。
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.autoload.html">__autoload</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.call-user-method.html">call_user_method</a></div>
 <div class="up"><a href="ref.classobj.html">类/对象 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
